How to get access to an API

Please follow these instructions in order to get access to an API.

On the API details page, click the "Request Access" button in the top right hand corner.

resources/1-7d1d01a9-0e88-4ec8-87de-e153f76f3464.png

You will be prompted to login or create an account. If you have previously created an account on the API platform, login, otherwise, click "Sign Up"

resources/2-50c9e816-d1ca-4c5c-9f61-3aab20a13c3c.png

Once you have filled in your details and created the account you must allow Västra Götalandsregionen access to your account details.

resources/3-f1f9534e-c155-4fa8-a926-8f293eb7349f.png

Now that your account is created, click the "Request access" button again. You will see another dialog box that allows you to choose the API instance. Choose production.
Now you must create a client application that will access the API. Click "Create a new application".

resources/4-c2fe614b-c2d2-4960-af9c-9870014410cd.png

Give your client application a clear name and a description about what the application does. No more information is needed.

resources/5-f31ddbf0-522c-4b1c-ac09-aea5b372ee3e.png

Choose the SLA tier. The default tier is "Standard".

Once you have this information, click "Request access".

resources/6-cb4d6c67-6d11-4f69-8a9f-a0814d319e60.png

A request will be sent to administrator to access the API and once it is approved you will get an email with the client_id and client_secret to access the API. You can find these details later in the "My applications" link at the top of the page.

resources/7-d5f44f02-3db5-4ac1-9646-bb1bce55c353.png

  1. In order to call the API, you must send the client id and secret as headers. This in an example of how the call can look.
curl --location --request GET 'https://test.api.vgregion.se/e-crm-scheduling-public/api/v1/testCenter' \
--header 'client_id: f3d67a21f832486eadf1e598217a0fff' \
--header 'client_secret: 9C352c2656A84CC488e4bf757c4fC249'